#主动技能【入梦/碎梦】
execute as @a[distance=0.1..5,scores={mengyan5=..4},gamemode=!spectator] run scoreboard players add @s mengyan5 1
scoreboard players set @s skCDEgg 9

execute if entity @p[distance=0.1..5,gamemode=!spectator] run scoreboard players remove @s[scores={skCDPearl=1..}] skCDPearl 2
execute if entity @p[distance=0.1..5,gamemode=!spectator] run scoreboard players remove @s[scores={skCDEXBottle=1..}] skCDEXBottle 2
execute if entity @p[distance=0.1..5,gamemode=!spectator] run scoreboard players remove @s[scores={skCDEgg=1..}] skCDEgg 5

execute if entity @p[distance=0.1..5,gamemode=!spectator] run tellraw @a [{"selector":"@s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"：释放技能","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【入梦】","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"—梦魇","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

execute unless entity @a[distance=0.1..5,gamemode=!spectator] at @s rotated ~ 0 run tp @s ^ ^0.3 ^6
execute unless entity @a[distance=0.1..5,gamemode=!spectator] run effect give @s strength 3 0
execute unless entity @a[distance=0.1..5,gamemode=!spectator] run tellraw @a [{"selector":"@s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"：释放技能","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【碎梦】","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"—梦魇","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

scoreboard players set @s skEgg 0